GXGetTrayPaperType
You can use theGXGetTrayPaperType
function to retrieve the paper-type information for a specific paper tray on the printer.
OSErr GXGetTrayPaperType (gxTrayIndex whichTray, gxPaperType paper);
whichTray
- The number of the tray in which you are interested.
paper
- A reference to a paper-type object that you have already allocated. On return, this object contains information about the paper that is in the specified tray.
- function result
- An error code. The values
noErr
indicates that the operation was successful. The valueresNotFound
indicates that the tray is not configured and that its paper type is displayed to the user as "Unknown."DESCRIPTION
TheGXGetTrayPaperType
function fills in the fields of a paper-type object with information from the desktop printer.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found,
or there was not enough memory to load it.gxPrUserAbortErr The user has canceled printing. gxPaperTypeNotFound The specified paper type could not be found. gxNoSuchPTGroup The specified paper type could not be found. SEE ALSO
You can read about managing paper trays in the section "Managing Paper Trays and Their Paper Types" beginning on page 5-5.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help